<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="static/img/logo.png" type="image/png">
    <link rel="stylesheet" href="static/css/admin_login.css">
    <title>管理员登录 - 智慧答题系统</title>
</head>
<body>
    <div class="login-container">
        <div class="login-card">
            <div class="login-header">
                <div class="admin-icon">🔐</div>
                <h1>管理员登录</h1>
                <p>请输入管理员密码以进入后台</p>
            </div>

            <form class="login-form" id="adminLoginForm">
                <div class="form-group">
                    <label for="adminPassword">管理员密码</label>
                    <input type="password" id="adminPassword" name="password" required 
                           placeholder="请输入管理员密码" autofocus>
                    <span class="error-message" id="passwordError"></span>
                </div>

                <button type="submit" class="btn-login" id="loginBtn">
                    <span>登录</span>
                    <span class="btn-loading" style="display:none;">登录中...</span>
                </button>

                <div class="login-footer">
                    <a href="/">返回首页</a>
                </div>
            </form>
        </div>
    </div>

    <script src="static/js/admin_login.js"></script>
</body>
</html>

